<header class="navbar yamm navbar-default navbar-fixed-top">
<div class="container">
<div></div>
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="dashboard.php"><span style="font-size:32px; font-family:'Arial Rounded MT Bold';"><i><b>URL Redirection Gateway</b></i></span></a>
    </div>
    <div class="navbar-collapse collapse">
    	<?php //print_r($_SESSION);
    	
    	 $count = count(@$_SESSION);
    	 
    	 ?>
        <ul class="nav navbar-nav">
            
            <li class="dropdown">
            <ul class="nav navbar-nav userButtons">
            	<?php
            	if($count>0)
				 {
				// 	echo ' <li><a href="user.php" class="dropdown-toggle buttonGrey">User</a></li> <li><a style="margin-right:0px;" href="listing_grid.php" class="dropdown-toggle buttonGrey">LISTING</a></li>';
				 }else
				 	{
				 		//echo '<li><a href="index.php" class="dropdown-toggle buttonGrey">LOGIN</a></li>                <li><a style="margin-right:0px;" href="register.php" class="dropdown-toggle buttonGrey">REGISTER</a></li>';
				 	}
            	?>
               
       
            </ul>
            </li>
            
        </ul> <ul><li class="dropdown" style="float: right;">
            	<?php
            	if($count>0)
				 {
				 	echo '<a href="dashboard.php" class="dropdown-toggle" style="color:#ccc;">Home</a> | <a href="logout.php" class="dropdown-toggle" style="color:#ccc;">Logout</a>';
				 }else
				 	{
				 		//echo '<a href="index.php" class="dropdown-toggle">Login</a>';
				 	}
            	?>
                
            </li></ul>       
    </div><!--/.navbar-collapse -->
</div>
</header>